package util

import (
	_const "aicloud/monitor-apiserver/pkg/util/const"
	"time"
)

func ParseTime(timeStr string) (time.Time, error) {
	timeObj, err := time.Parse(_const.TIMEFORMAT, timeStr)
	if err != nil {
		return time.Time{}, err
	}
	return timeObj.In(time.Local), nil
}
